home *** CD-ROM | disk | FTP | other *** search
- #include "my color.h"
- init_color_demo() /* initialize all the managers needed, and prepare the
- program for execution */
- {
-
- InitGraf(&thePort);
-
- InitFonts();
- FlushEvents(everyEvent,0);
- InitWindows();
- InitMenus();
- TEInit();
- InitDialogs(nil);
- InitCursor();
-
- SetUpMenus();
- screenRect = screenBits.bounds;
- SetRect(&dragRect,4,24,screenRect.right-4,screenRect.bottom-4);
- doneFlag = false;
-
- menusOK = false;
- nextWNum = 1;
- SetRect (&nextWRect,leftEdge,topEdge,rightEdge,botEdge);
- }